package com.own.core.html.form.textField;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import com.own.core.html.form.validateType;
import com.own.core.util.Action;
 
@Retention(RetentionPolicy.RUNTIME)
public @interface TextField {

	// to draw id field is required @ create operation
	boolean required() default false;

	// define validation
	validateType validate() default validateType.ALPHA_NUMERIC;

	// max lenght for
	int Lenght() default 50; 

	// define if field searchable in search for
	boolean serachable() default true;

	// define if field link to anther page or not
	String linkable() default "";

	// if field dispaly in listing Object
	boolean list() default true;

	// define if field searchable in search for
	boolean number() default false;

	Action role() default Action.ALL;
}